#ifndef _RDTSC_H_
#define _RDTSC_H_

unsigned long long rdtsc()
{
	unsigned cycle_high;
	unsigned cycle_low;
	
	__asm__ __volatile__
	(
		"rdtsc" : "=a"(cycle_low), "=d"(cycle_high)
	);

	return ((unsigned long long) cycle_low) | (((unsigned long long) cycle_high) << 32);
}

#endif
